export default {
    type: 'input-group',
    label: '所属片区',
    body:[
        {
            type: 'select',
            name: 'provinceCode',
            source: {
                method: 'get',
                url: '/base/region/province',
                cache: 1000 * 60 * 60
            },
            labelField: 'regionName',
            valueField: 'regionCode',
            required: true,
            validationErrors: {
                isRequired: '请选择省'
            },
            inputClassName:'aaa'
        },
        {
            type: 'select',
            name: 'cityCode',
            clearable: true,
            source: {
                method: 'get',
                sendOn: '${provinceCode}',
                url: '/base/region/children?parentId=${provinceCode}',
                cache: 1000 * 60 * 60
            },
            labelField: 'regionName',
            valueField: 'regionCode',
        },
        {
            type: 'select',
            name: 'areaCode',
            clearable: true,
            source: {
                method: 'get',
                sendOn: '${cityCode}',
                url: '/base/region/children?parentId=${cityCode}',
                cache: 1000 * 60 * 60
            },
            labelField: 'regionName',
            valueField: 'regionCode',
        }
    ]
}